﻿using Abp.Application.Services;
using Abp.Application.Services.Dto;
using Partner.Surround.Core.DataDictionaries.Dto;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Partner.Surround.Core.DataDictionaries
{
    /// <summary>
    /// 数据字典应用层接口
    /// </summary>
    public interface IDataDictionaryAppService : IApplicationService
    {
        /// <summary>
        /// 获取数据字典集合
        /// </summary>
        /// <returns></returns>
        Task<ListResultDto<DataDictionaryListDto>> GetAllDataDictionaryListAsync();

        /// <summary>
        /// 获取数据字典记录
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<DataDictionaryEditDto> GetDataDictionaryForEditAsync(NullableIdDto<long> input);

        /// <summary>
        /// 添加或更新数据字典记录
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task CreateOrUpdateDataDictionaryAsync(CreateOrUpdateDataDictionaryInput input);

        /// <summary>
        /// 删除数据字典记录
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task DeleteDataDictionaryAsync(List<EntityDto<long>> inputs);

        /// <summary>
        /// 根据字典类型名称获取数据字典集合
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<ListResultDto<DataDictionaryListDto>> GetDataDictionaryListByTypeNamesAsync(GetDataDictionaryListByTypeNamesInput input);
    }
}
